package com.xiguanlezz.cn.order;

import com.xiguanlezz.cn.common.Operation;
import com.xiguanlezz.cn.common.OperationResult;
import lombok.ToString;

/**
 * @Author：习惯了种种
 * @CreateDate：2024/10/16 22:56
 * @Description：
 */
@ToString
public class OrderOperation extends Operation {

    private String[] foodNameList;

    @Override
    public OperationResult execute() {

        return new OrderOperationResult(foodNameList);
    }

    public OrderOperation(String...foodNameList) {
        this.foodNameList = foodNameList;
    }
}
